package com.synnex.mobile.servier.core.config;

import com.synnex.mobile.generic.core.config.service.bo.ConfigurationHelper;
import com.synnex.mobile.generic.core.util.StringUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lancec
 */
public class ServierConfigHelper extends ConfigurationHelper {


    protected static final String FILE_FTP_HOST = "file.ftp.host";
    protected static final String FILE_FTP_PORT = "file.ftp.port";
    protected static final String FILE_FTP_UID = "file.ftp.uid";
    protected static final String FILE_FTP_PASSWORD = "file.ftp.password";

    protected static final String FILE_FTP_PATH_DOC = "file.ftp.path.doc";
    protected static final String FILE_FTP_PATH_IMAGE = "file.ftp.path.image";
    protected static final String FILE_FTP_PATH_UPLOAD = "file.ftp.path.upload";

    protected static final String FILE_FTP_DOWNPATH_DOC = "file.ftp.downPath.doc";
    protected static final String FILE_FTP_DOWNPATH_IMAGE = "file.ftp.downPath.image";
    protected static final String FILE_FTP_DOWNPATH_UPLOAD = "file.ftp.downPath.upload";




    public String getFtpHost() {
        String ftpHost = getValue(FILE_FTP_HOST);
        return ftpHost;
    }

    public String getFtpUserName() {
        String userId = getValue(FILE_FTP_UID);
        return userId;
    }

    public String getFtpPwd() {
        String pwd = getValue(FILE_FTP_PASSWORD);
        return pwd;
    }

    public String getFtpImagePath() {
        String imagePath = getValue(FILE_FTP_PATH_IMAGE);
        return imagePath;
    }

    public String getFtpDocPath() {
        String docPath = getValue(FILE_FTP_PATH_DOC);
        return docPath;
    }
    public int getFtpPort() {
        int ftpHost = Integer.parseInt(getValue(FILE_FTP_PORT));
        return ftpHost;
    }
    public String getFtpDocDownPath() {
        String ftpHost = getValue(FILE_FTP_DOWNPATH_DOC);
        return ftpHost;
    }

    public String getFtpImageDownPath() {
        String ftpHost = getValue(FILE_FTP_DOWNPATH_IMAGE);
        return ftpHost;
    }
    public String getFtpUploadPath() {
        String ftpHost = getValue(FILE_FTP_PATH_UPLOAD);
        return ftpHost;
    }
    public String getFtpDownLoadPath() {
        String ftpHost = getValue(FILE_FTP_DOWNPATH_UPLOAD);
        return ftpHost;
    }

}
